function getLayers(docName) {
    var children = []
    const docCatalog = new Zondy.Catalog.MapDoc({
        docName
    })
    docCatalog.getLayersInfo(data => {
        data.value.forEach((item) => {
            let { LayerIndex, Name } = item;
            children.push({
                id: LayerIndex,
                label: Name,
            })
        })
    })
    return children
}
// 裁剪分析用，不能有“：”
export function getCurentTime() {
    var now = new Date();
    //获取当前年份
    var year = now.getFullYear();
    //获取当前月份     
    var month = now.getMonth() + 1;
    //获取当前日期   
    var day = now.getDate();
    //获取当前时刻
    var hh = now.getHours();
    //获取当前分钟
    var mm = now.getMinutes();
    //获取当前秒钟
    var ss = now.getSeconds();
    //将当前的日期拼串
    var clock = year + "-";
    if (month < 10)
        clock += "0";
    clock += month + "-";
    if (day < 10)
        clock += "0";
    clock += day + " ";
    if (hh < 10)
        clock += "0";
    clock += hh;
    if (mm < 10) clock += '0';
    clock += mm;
    if (ss < 10) clock += '0';
    clock += ss;
    return (clock);
}
// 发公告用，有“：“
export function getCurrentTime() {
    var now = new Date();
    //获取当前年份
    var year = now.getFullYear();
    //获取当前月份     
    var month = now.getMonth() + 1;
    //获取当前日期   
    var day = now.getDate();
    //获取当前时刻
    var hh = now.getHours();
    //获取当前分钟
    var mm = now.getMinutes();
    //获取当前秒钟
    var ss = now.getSeconds();
    //将当前的日期拼串
    var clock = year + "-";
    if (month < 10)
        clock += "0";
    clock += month + "-";
    if (day < 10)
        clock += "0";
    clock += day + " ";
    if (hh < 10)
        clock += "0";
    clock += hh + ':';
    if (mm < 10) clock += '0';
    clock += mm + ':';
    if (ss < 10) clock += '0';
    clock += ss;
    return (clock);
}